from celery import Celery


# 利用导入的 Celery 创建对象
celery_app = Celery('ihome')

# 将config 配置给 celery
celery_app.config_from_object('celery_tasks.config')

celery_app.autodiscover_tasks(['celery_tasks.sms'])